import http from "@/service/request";
import type { params } from "../type";

enum API {
  GET_SHOP_CLASSIFY = "/api/shop/classify",
}

export function api_get_shop_classify(params: params, id?: number) {
  if (id) {
    return http({
      method: "get",
      url: API.GET_SHOP_CLASSIFY + id,
      params,
    });
  } else {
    return http({
      method: "get",
      url: API.GET_SHOP_CLASSIFY,
      params,
    });
  }
}
